package com.qiaofang.applet.service.other.service;

import com.qiaofang.applet.common.base.BaseService;
import com.qiaofang.applet.service.other.domain.DictCorp;
import com.qiaofang.applet.service.other.service.dto.DictDifferentDto;
import com.qiaofang.applet.service.other.service.dto.DictDto;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author daiyuxiang
 */
public interface DictCorpService extends BaseService<DictCorp, String> {
    void initCorporationData(String corporationCode);

    void initCorporationDataByDictType(String corporationCode, String dictType);

    void removeCorporationData(String corporationCode);

    void removeCorporationDataByDictType(String corporationCode, String dictType);

    void saveDictCorp(List<DictCorp> list);

    void saveDictCorp(DictCorp dictCorp);

    List<DictDto> getDictByCorporationCode(String corporationCode);

    Map<String, List<DictDto>> getDictCollectionByType(Set<String> dictTypes, String corporationCode);

    List<DictDto> getToolList();

    List<DictDto> getSlideShow();

    /**
     * 根据房源类型查询字典
     * @param propertyType
     * @return
     */
    Map<String, List<DictDto>> getDictCollectionByPropertyType(String propertyType, String corporationCode);

    void initConstanceData(String corporationCode);

    Map<String, List<DictDto>> getDictCollectionByCorporationCode(String corporationCode);

    List<DictDto> getOtherLogo(String corporationCode);

    /**
     * 增加字典表中新上的字典数据
     * @param corporationCode
     */
    void incrementAddToDict(String corporationCode, List<DictCorp> initList);
}
